<?php

require_once("libs/controller.php");
require_once("modelos/usuario.php");

class MainController extends Controller {
	
	public function __construct() {
		$this->layout = "default";
		$this->titleShowed = file_get_contents("http://127.0.0.1/EscenarioDominical/galeria");
		
		if (!$this->titleShowed) {
			$this->titleShowed = "AAAA";
		}
		$this->pageTitle = "Portada";
	}
	
	public function index() {
		$usu = new Usuario();
		
		$usu->doSelectAll();
		if ($usu->next()) {
			$this->mail = $usu->getValue('correo');
		}
	}

}

?>
